package com.serkol.ams.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.serkol.ams.entity.Notify;

import java.util.List;
import java.util.Map;

/**
 * @author pingan
 * @description 针对表【notify】的数据库操作Service
 * @createDate 2022-12-05 01:44:36
 */
public interface NotifyService extends IService<Notify> {

    boolean sendMessage(int type, String message);

    boolean sendMessageAll(int type, String message);

    boolean sendMessageType(int[] type, String message);

    boolean sendMessageUsers(long[] userIds, String message);

    boolean sendMessageUsersType(int type, long[] userIds, String message);

    boolean sendMessageUser(long userId, String message);

    boolean sendMessageUserType(int type, long userId, String message);
    boolean sendMessageUserType(int[] type, long userId, String message);


    Map<String, Object> mySystemNotify();

    List<Map<String, Object>> findByMyList(int type);
}
